/*
 * 智能机浏览器版本信息:
 *
 */
var strUrl = window.location.href;
var arrUrl = strUrl.split("/");
var strPage = arrUrl[arrUrl.length - 1];
var strType = arrUrl[arrUrl.length - 2];
var str1 = arrUrl[3];
var str2 = arrUrl[4]||"";
var str3 = arrUrl[5]||"";

strPage = strPage.replace(".htm", "");
strPage = strPage.replace("_2", "");
var os = function() {
     var ua = navigator.userAgent,
     isWindowsPhone = /(?:Windows Phone)/.test(ua),
     isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone,
     isAndroid = /(?:Android)/.test(ua),
     isFireFox = /(?:Firefox)/.test(ua),
     isChrome = /(?:Chrome|CriOS)/.test(ua),
     isTablet = /(?:iPad|PlayBook)/.test(ua) || (isAndroid && !/(?:Mobile)/.test(ua)) || (isFireFox && /(?:Tablet)/.test(ua)),
     isIpad = /(?:iPad)/.test(ua),
     isPhone = /(?:iPhone)/.test(ua) && !isTablet,
     isPc = !isPhone && !isAndroid && !isSymbian;
     return {
          isTablet: isTablet,
          isPhone: isPhone,
          isAndroid : isAndroid,
          isPc : isPc,
          isIpad:isIpad
     };
}();
if(os.isAndroid){
    window.location = "http://m.onlinedown.net/app.php?str1=" + str1 +"&str2=" + str2 +"&str3=" + str3;
}
if(os.isPhone||os.isIpad){
    window.location = "http://m.onlinedown.net/app.php?str1=" + str1 +"&str2=" + str2 +"&str3=" + str3;
}
